<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ page trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<a href="${pageContext.request.contextPath }/admin/tripadd.action">新增</a>
<table border="1">
<tr>
	<th width="100">名称</th>
	<th width="100">缩略图</th>
	<th>类型</th>
	<th>描述</th>
	<th width="100">操作</th>
</tr>
<c:forEach items="${triplist}" var="t">
<tr>
	<td>${t.tripname }</td>
	<td><img src="${pageContext.request.contextPath }/${t.trippic }" width="50"/></td>
	<td>${t.cid }</td>
	<td>${t.tripdesc }</td>
	<td><a href="${pageContext.request.contextPath }/admin/tripedit.action?tripid=${t.tripid}">编辑</a> 
	<a href="${pageContext.request.contextPath }/admin/deltrip.action?tripid=${t.tripid}" onclick="return confirm('确定要删除吗？')">删除</a></td>
</tr>
</c:forEach> 
</table>



</body>
</html>